import axios from "./http.js";
// import _ from "lodash";
import qs from "qs";

// 桌面操作
export function login(data, config) {
  let url = "/auth/login";

  data = data || {};
  config = config || {
    headers: {
      "content-type": "application/x-www-form-urlencoded",
      isLogin: false
    }
  };
  data = qs.stringify(data);
  return axios.post(url, data, config);
}

export function logout(data, config) {
  let url = "/auth/uni_logout";
  data = data || {};
  config = config || {};
  return axios.post(url, data, config);
}
